#pragma OPENCL EXTENSION cl_khr_fp16 : enable
#pragma OPENCL EXTENSION cl_khr_subgroups : enable

__kernel void test_broadcast(__global int* out) {
    int gid = get_global_id(0);
    int val = gid;
    int broadcast_val = sub_group_broadcast(val, 0);
    out[gid] = broadcast_val;
}